/**
 * Copyright &copy; 2012-2016
 * <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights
 * reserved.
 */
package com.thinkgem.jeesite.modules.shop.entity.receiving;

import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 购物订单收货配置Entity
 * 
 * @author JiangYongKang
 * @version 2016-12-19
 */
@Alias("shopOrderReceiving")
public class ShopOrderReceiving extends DataEntity<ShopOrderReceiving> {

    private static final long serialVersionUID = 1L;
    private String code; // 快递单号
    private String company; // 快递公司
    private String name; // 收货人
    private String telephone; // 电话号码 
    private String address; // 收货地址
    private String comment; // 备注信息
    private String orderId; //订单ID

    public ShopOrderReceiving() {
        super();
    }

    public ShopOrderReceiving(String id) {
        super(id);
    }

    @Length(min = 1, max = 64, message = "快递单号长度必须介于 1 和 64 之间")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Length(min = 1, max = 255, message = "快递公司长度必须介于 1 和 255 之间")
    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    @Length(min = 1, max = 64, message = "收货人长度必须介于 1 和 64 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 1, max = 64, message = "电话号码长度必须介于 1 和 64 之间")
    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    @Length(min = 1, max = 255, message = "收货地址长度必须介于 1 和 255 之间")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Length(min = 0, max = 255, message = "备注信息长度必须介于 0 和 255 之间")
    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

}